<?php
include ("head.php");
$url="sendcar_list.php?type=3&kq=".$_GET["kq"]."&menuname=".$_GET["menuname"];
?>
<iframe
	width=174 height=172 name="gToday:normal:calendar/agenda.js"
	id="gToday:normal:calendar/agenda.js" src="calendar/ipopeng.htm"
	scrolling="no" frameborder="0"
	style="visibility: visible; z-index: 999; position: absolute; left: -500px; top: 0px;"></iframe>
<div class="Main_body" id="Main_body">
<div class="Main_locationBar">
<div class="Main_locationBar_head"></div>
<div class="Main_locationBar_body"><span id="CurrentPosition">Location：Video
&gt; List</span></div>
<div class="Main_locationBar_foot"></div>
</div>
<form name="form1" action="<?echo $url?>" method="post">
<div id="shortcut_search">
<div class="Main_bodySimpleSearchBar">
<div class="Main_bodySimpleSearchBar_head"></div>
<div class="Main_bodySimpleSearchBar_body"><ww:hidden name="curPage"
	id="curPage" />
<table width="100%" border="0" cellpadding="0" cellspacing="1"
	class="simpleSearchTable" style="margin-top: 5px">
	<tbody>
		<tr>
			<td class="title">Title：</td>
			<td class="content"><input name="cphm" id="componentSearchName"
				class="input_short" value="<?=$_POST["title"]?>" /></td>
			<td>
			</td>
		</tr>
</table>
<!--</td>-->
<!--</tr>-->
<!--</tbody>-->
<!--</table>-->
</div>
<div class="Main_bodySimpleSearchBar_foot"></div>
</div>
<div class="Main_buttonGroupBar">
<div class="Main_buttonGroupBar_head"></div>
<div class="Main_buttonGroupBar_body"><input type="submit"
	class="button" value="Search" /></div>
<div class="Main_buttonGroupBar_right"></div>
<div class="Main_buttonGroupBar_foot"></div>
</div>
</div>
</form>
<div class="Main_bodyListBar">
<div class="Main_bodyListBar_head"><span>Videos</span></div>
<div class="Main_handleBar check_pass" id="Main_handleBar"
<?if($msg==""){?> style="display: none" <?}?>>
<div class="Main_handleBar_head"></div>
<div class="Main_handleBar_body">
<p><?echo $msg;?></p>
</div>
<div class="Main_handleBar_foot"><a href="javascript:void(0)"
	class="close" onclick="closeHandleBar()"></a></div>
</div>
<div class="Main_bodyListBar_body">
<table border="0" cellpadding="0" cellspacing="0" class="listTable">
	<tr>
		<th>Serial</th>
		<th>Title</th>
		<th>Video Path</th>
		<th>Image Path</th>
		<th>Update Time</th>
		<th>Operations</th>
	</tr>
	<?
	$tab="video";
	$and="";
	if($_POST["title"]!=""){
		$and=" and title like'%".$_POST["title"]."%'";
	}
	include ("pagination.php");
	$i=1;
	while ($rs=mysql_fetch_array($result)){
		?>
	<tr onmouseover="listTable_trMouseOver(this)"
		onmouseout="listTable_trMouseOut(this)">
		<td>&nbsp;<?=$i?></td>
		<td>&nbsp;<?=$rs["title"]?></td>
		<td>&nbsp;<?=$rs["path"]?></td>
		<td>&nbsp;<?=$rs["imagepath"]?></td>
		<td>&nbsp;<?=$rs["updatedate"]?></td>
		<td>&nbsp;<a href="videoedit.php?id=<?=$rs["id"]?>&menuname=1_12">Edit</a>&nbsp;Delete</td>
	</tr>
	<?
	$i=$i+1;
	}
	include ("page.php");
	?>
</table>
</div>
<div class="Main_bodyListBar_foot"></div>
</div>
<div class="Main_buttonGroupBar">
<div class="Main_buttonGroupBar_head"></div>
<!--div class="Main_buttonGroupBar_body">
      	<input name="button4" type="button" class="button" value="添加" onclick="window.location='sendcar_add.php?menuname=<?=$_GET["menuname"]?>'"/>
    	</div-->
<div class="Main_buttonGroupBar_foot"></div>
</div>
</div>
<input type="hidden"
	name="strDelete" value="">

<script>
		function toDelete(id){
			if(confirm("您确定要取消吗？")){
				location.href="sendcar_manage.php?method=delete&id="+id;
			}
		}
	  </script>
	<?php
	include ("end.php");
	?>